import request from '@/utils/request'
import type { MockUser } from '@/api/api'

// 模版相关接口, 仅用于mock数据

export const loadUserList: MockUser.loadUserList = () => {
  return request.get('/mock/list')
}

export const loadDetail: MockUser.loadDetail = id => {
  return request.get('/mock/detail', { params: { id } })
}

export const loadAudit = () => {
  return request.get('/mock/audit')
}

export const loadAdd = () => {
  return request.get('/mock/add')
}
